package com.otod.sys.menu.bo;

import java.util.List;

public class MenuBO implements Comparable<MenuBO>{
	private String menuId = null;
	private String menuText = null;
	private String parentMenuId = null;
	private String url = null;
	private String hasChild = null;
	private Long menuOrder = null;
	private List<MenuBO> children = null;
	
	public int compareTo(MenuBO o) {
		if(this.getMenuOrder() != null && o.getMenuOrder() != null){
			return this.getMenuOrder().intValue() - o.getMenuOrder().intValue();
		} else if (this.getMenuOrder() != null){
			return this.getMenuOrder().intValue();
		} else {
			return -1;
		}
	}
	
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getMenuText() {
		return menuText;
	}
	public void setMenuText(String menuText) {
		this.menuText = menuText;
	}
	public String getParentMenuId() {
		return parentMenuId;
	}
	public void setParentMenuId(String parentMenuId) {
		this.parentMenuId = parentMenuId;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getHasChild() {
		return hasChild;
	}
	public void setHasChild(String hasChild) {
		this.hasChild = hasChild;
	}
	public List<MenuBO> getChildren() {
		return children;
	}
	public void setChildren(List<MenuBO> children) {
		this.children = children;
	}
	public Long getMenuOrder() {
		return menuOrder;
	}
	public void setMenuOrder(Long menuOrder) {
		this.menuOrder = menuOrder;
	}

}
